// 基础设置  教职工信息维护
import request from '@/utils/request'
// 配置公共的header
const headers = {
  'Content-Type': 'application/json;charset=utf-8'
}
const url = '/web/jzgxx/'
/**
 * @name findList
 * @description 查询教职工列表
 * @author cjs1992
 * @date 2019-11-15 10:44:08
 */
export function findList(data = {}) {
  return request({
    method: 'post',
    url: `${url}findList`,
    data: data,
    ...headers
  })
}
/**
 * @name add
 * @description 添加教职工
 * @author cjs1992
 * @date 2019-11-15 10:46:51
 */
export function add(data = {}) {
  return request({
    method: 'post',
    url: `${url}add`,
    data: data,
    ...headers
  })
}
/**
 * @name editJzgXxById
 * @description 编辑教职工信息
 * @author cjs1992
 * @date 2019-11-20 10:01:15
 */
export function editJzgXxById(data = {}) {
  return request({
    method: 'post',
    url: `${url}editJzgXxById`,
    data: data,
    ...headers
  })
}
/**
 * @name getJzgxxById
 * @description 获取教职工详情
 * @param {
 *  id
 * }
 * @author cjs1992
 * @date 2019-12-20 15:50:08
 */
export function getJzgxxById(data = {}) {
  return request({
    url: `${url}getJzgxxById`,
    method: 'get',
    params: data
  })
}
/**
 * @name jzgSyncGoSysUser
 * @description 同步教职工到用户表
 * @author lousk
 * @date 2019-12-18
 */
export function jzgSyncGoSysUser() {
  return request({
    url: '/web/common/savejzgGoSysUser',
    method: 'post'
  })
}
/**
 * @name delBjByIds
 * @description 删除教职工
 * @author cjs1992
 * @date 2019-12-23 14:46:48
 */
export function delBjByIds(data = {}) {
  return request({
    url: `${url}delBjByIds`,
    method: 'post',
    data: data,
    ...headers
  })
}
/**
 * @name queryTbBaseFileById
 * @description 根据教职工照片id获取照片路径
 * @author cjs1992
 * @date 2019-12-24 10:12:12
 */
export function queryTbBaseFileById(data = {}) {
  return request({
    method: 'get',
    url: '/web/tbBaseFile/queryTbBaseFileById',
    params: data
  })
}
